package com.mlnx.bluwifi.manager.datalis;

import com.mlnx.bluwifi.service.WifiBluService;
import com.mlnx.bluwifi.tp.BerrySpoPacket;

/**
 * Created by amanda.shan on 2019/11/20.
 */
public class DefaultSpoLis implements BerrySpoPacket.SpoLis {

    private String deviceId;

    private WifiBluService wifiBluService;

    public DefaultSpoLis(String deviceId, WifiBluService wifiBluService) {
        this.deviceId = deviceId;
        this.wifiBluService = wifiBluService;
    }

    @Override
    public void spo(int spo, int pulse, int pi) {
        wifiBluService.broadCastSpo(deviceId, spo, pulse);
    }
}
